 #define  _CRT_SECURE_NO_WARNINGS 1
#include<vector>
#include<utility>
using namespace std;
#include"RBtree.h"


int main()
{
	RBtree<int> t;

	const int N = 40;
	vector<int> v;
	v.reserve(N);
	srand(time(0));

	for (size_t i = 0; i < N; i++)
	{
		v.push_back(rand());
	}

	for (auto& ch : v)
	{
		t.Insert(make_pair(ch,ch));
	}


	t.Inorder();
	t.IsBalance();
	return 0;
}